using Janus.BaseEntitys;
using Janus.Cores.Linq;
using Janus.Mes.DTO;
using Janus.Mes.IDal;
using Janus.Mes.POCO;
using System;
using System.Collections.Generic;

namespace Janus.Mes.SqlDal
{
    /// <summary>
    /// 工作日历 
    /// </summary> 
    public partial class CalendarDal
    {
        public bool CopyInsert(CalendarDTO model)
        {
            bool result = false;
            try
            {
                var poco = AutoMapper.Mapper.DynamicMap<Calendar>(model);
                var o = this.Context.Insert(nameSpace + ".CopyInsert", poco);
                result = true;
            }
            catch (Exception)
            {
                throw;
            }
            return result;
        }
    }
}
